package rjgc.mall.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import rjgc.mall.entity.AfterSale;
import rjgc.mall.mapper.AfterSaleMapper;
import rjgc.mall.service.AfterSaleService;

import java.util.Date;
import java.util.List;

@Service
public class AfterSaleServiceImpl implements AfterSaleService {

    @Autowired
    private AfterSaleMapper afterSaleMapper;
    @Override
    public void publishAfterSaleService(Integer userid, Integer goodid, String goodname, String description, List<String> imgurl) {
        AfterSale afterSale = new AfterSale(userid,goodid,goodname,description,imgurl.get(0),"待处理",new Date());
        afterSaleMapper.publishAfterSaleService(afterSale);
    }
}
